A numeric vector of sequence indices, character vector
(containing sequence names), or logical vector. If logical vector,
it will be recycled as necessary to the length of nrow.msa(x).
If not provided, all rows are selected.
cols
A numeric vector of alignment columns, or a logical
vector. If logical vector it will be recycled to the same length
as ncol.msa(x). Note that these are coordinates with respect
to the entire alignment. x$idx.offset is ignored here. If cols is not
provided, all columns are selected.
value
The value to replace in the indicated rows/columns. Should
be a character representing a base (ie, "A", "C", "G", "T", "N", "-").
Can be a single value or a vector of values which match number of selected
cells. This value will be recycled to the necessary length, and an error
produced if the necessary length is not an even multiple of
length(value). Can also give a single character string, in which
case it will be expanded into a vector using strsplit.
Value
An object of type msa with the chosen rows/columns
replaced by value.